package com.ruoyi.hov.service;

import com.ruoyi.dynamic.DynamicQueryService;
import com.ruoyi.hov.entity.ClassBindHov;

import java.io.Serializable;
import java.util.Collection;
import java.util.List;

/**
 * <p>
 * 属性绑定hov 服务类
 * </p>
 *
 * @author XiaShiLong
 * @since 2021-04-01
 */
public interface ClassBindHovService extends DynamicQueryService<ClassBindHov> {

    /**
     * 是否有绑定hovId
     *
     * @param hovId hovId
     * @return boolean
     */
    boolean existByHovId(Serializable hovId);

    /**
     * 保存
     *
     * @param classBindHov <see>ClassBindHov</see>
     * @return boolean
     */
    boolean saveAll(Collection<ClassBindHov> classBindHov);

    /**
     * 删除
     *
     * @param classBindHov <see>ClassBindHov</see>
     * @return boolean
     */
    boolean delete(ClassBindHov classBindHov);

    /**
     * 根据类和字段获取hov绑定信息
     *
     * @param classPath     类路径
     * @param attributeName 字段名
     * @return ClassBindHov
     */
    ClassBindHov get(String classPath, String attributeName);

    /**
     * 获取类下所有hov绑定信息
     *
     * @param classPath 类路径
     * @return List
     */
    List<ClassBindHov> get(String classPath);
}
